/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", sans-serif;
    background-color: #f5f7fa;
    overflow: hidden;
}

/* 布局 */
.layout {
    display: flex;
    height: 100vh;
}

/* 侧边栏样式 */
.sidebar {
    width: 220px;
    background-color: #2c3e50;
    color: #fff;
    height: 100%;
    overflow-y: auto;
}

.logo-container {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #34495e;
}

.logo-text {
    font-size: 18px;
    font-weight: bold;
}

/* 菜单样式 */
.menu {
    padding: 15px 0;
}

.menu-item {
    position: relative;
    padding: 0 15px;
    margin-bottom: 5px;
}

.menu-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 10px;
    color: #ecf0f1;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.menu-link:hover {
    background-color: #34495e;
}

.menu-link.active {
    background-color: #3498db;
}

.arrow-icon {
    display: inline-block;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 5px solid #ecf0f1;
    transition: transform 0.3s;
}

.has-submenu.active .arrow-icon {
    transform: rotate(90deg);
}

/* 子菜单样式 */
.submenu {
    display: none;
    background-color: #34495e;
    border-radius: 4px;
    margin-top: 5px;
    padding: 5px 0;
}

.has-submenu.active .submenu {
    display: block;
}

.submenu-item {
    padding: 5px 15px;
}

.submenu-link {
    display: block;
    padding: 8px 15px;
    color: #bdc3c7;
    text-decoration: none;
    border-radius: 3px;
    transition: background-color 0.3s;
}

.submenu-link:hover {
    color: #fff;
    background-color: #2c3e50;
}

/* 主内容区样式 */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.breadcrumb {
    padding: 15px 20px;
    background-color: #fff;
    border-bottom: 1px solid #e1e4e8;
    color: #666;
    font-size: 14px;
}

.content-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    border-bottom: 1px solid #eee;
}

.content-header h1 {
    font-size: 20px;
    font-weight: normal;
    color: #333;
}

.content-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

/* 按钮样式 */
.btn {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #3498db;
    color: #fff;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-search {
    background-color: #2ecc71;
    color: #fff;
    margin-left: 10px;
}

.btn-edit {
    background-color: #f39c12;
    color: #fff;
}

/* 表单样式 */
.search-box {
    display: flex;
    margin-bottom: 20px;
}

.search-box input, .search-box select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
}

.search-box select {
    min-width: 100px;
}

/* 表格样式 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border: 1px solid #e1e4e8;
}

.data-table th {
    background-color: #f5f7fa;
    padding: 12px 15px;
    text-align: left;
    font-weight: normal;
    color: #666;
    border-bottom: 1px solid #e1e4e8;
}

.data-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.data-table tr:hover td {
    background-color: #f9f9f9;
}

/* 分页样式 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-top: 20px;
    font-size: 14px;
}

.pagination select {
    padding: 5px;
    margin: 0 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.pager {
    display: flex;
    margin: 0 15px;
}

.pager button {
    margin: 0 2px;
    padding: 5px 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.page-input {
    width: 40px;
    padding: 5px;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}